*,
*::before,
*::after {
  box-sizing: border-box;
}

ul{
  text-align: center;
  color: #EBFFFF;
  background-color: #104760;
  list-style: none;
  margin: 0;
  padding: 5px 0;
}

.horizontal{
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: 100%; */
  flex-wrap: wrap;
  gap: 0px 25px;
  margin: 15px 0px 50px 0px;
  padding: 5px;
  
}

li{
  padding: 0;
  /* padding-right: 25px; */
  /* padding-left: 100px; */
}


body{
    margin: 0 8px;
    background-color: #082735;
    color: #EBFFFF;
    font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  
      
}

 h2 {
    text-align: center;
    font-family: "Sixtyfour", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "BLED" 0,
    "SCAN" 0;    
}  

h3 {
  letter-spacing: 1px;
  font-size: medium;
  font-weight: lighter;
}

h5 {
  max-width: 1000px;
  letter-spacing: 1px;
  font-weight: lighter;
  /* padding: 0 0 0 50px; */
  /* margin-right: 250px; */


}


a {
    color: inherit;       /* übernimmt die umgebende Textfarbe */
    text-decoration: none; /* entfernt Unterstreichung */
    font-size: 1rem;
    /* letter-spacing: 1px; */
}

a.aktiv {
    font-weight: bold;

}

a:hover {
    font-weight: bold;
    text-decoration: none;
  }

.horizontal a{
  /* display: inline-block; */
  position: relative;
}

.horizontal a::after{
  content: attr(data-label);
  font-weight: bold;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  display: block;
}

  .timeline {
        position: relative;
        max-width: 800px;
        margin: auto;
        padding: 20px 0;
    }

  .timeline-container {
        padding: 5px 5px;
        position: relative;
        background-color: inherit;
        width: 50%;
    }

    .left { left: 0; }
    .right { left: 50%; }
    .right::after { left: -10px; }

    /* Details Styling */
    details {
        background: #104760;
        border-radius: 6px;
        padding: 10px 15px 5px 15px;
        margin-top: 10px;
        
        
    }

    summary {
        /* font-weight: bold; */
        cursor: pointer;
        outline: none;
        letter-spacing: 2px;
      
    }

    .firma {
      font-weight: bold;
      letter-spacing: 2px;
      display: inline-block;
      margin-top: 8px;
      font-size: medium;
      

    }

    details .details-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
details[open] .details-content {
  grid-template-rows: 1fr;
}
details .details-content .inner {
  overflow: hidden;
}



    /* .details-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

                             wenn details offen ist, Inhalt ausklappen
details[open] .details-content {
  max-height: 500px;             ggf. größer machen, wenn viel Inhalt
}

                            Leichter Fade-In zusätzlich (optional)
details[open] .details-content {
  animation: fadeIn 0.3s ease-in-out;
} */

/* @keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
} */

    /* Animation beim Öffnen 
    details[open] {
        animation: fadeIn 0.3s ease-in-out;
    }
 */
 /* .timeline {
  padding-left: 50px;
    
} */



/* .container { */
    /*display: grid;          Elemente nebeneinander */
    /*align-items: flex-start; /* Oben bündig */
    /* justify-content: space-between; */
    /*gap: 0px;             /* Abstand zwischen Bild und Text */
    /* grid-template-columns: [first] 400px [line2] 1000px;
  }
   */
  /* .container img {
    width: 200px;          
    height: auto;          
    max-width: 100%;
  } */


    /* .timeline::after {
        content: '';
        position: absolute;
        width: 4px;
        background-color: #EBFFFF;
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -2px;
    } */

   

    /* .timeline-container::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        right: -10px;
        background-color: rgb(84, 6, 6);
        border: 4px solid #104760;
        top: 15px;
        border-radius: 50%;
        z-index: 1;
    } */


    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-3px); }
        to { opacity: 1; transform: translateY(0); }
    }



  @media (max-width: 768px) {
            ul, li {
                flex-direction: column; /* Navigation untereinander */
                align-items: center;
            }
            li {
              padding: 0;
            }

            /* ul, li a {
                padding: 0.8rem;
                width: 100%;
                text-align: center;
                border-bottom: 1px;
            } */

            .horizontal li a {
              font-size: 0.9rem;     /* kleinere Schrift */
              padding: 0.4rem 0.6rem;
              display: inline-block;
            }

            .horizontal {
              /* display: flex;
              justify-content: center;
              align-items: center; */
              flex-wrap: wrap;
              gap: 8px;
              /* margin: 10px 0 30px 0; */

            }

            header {
                font-size: 1rem;
            }

            .timeline {
              max-width: 100%;
              padding: 10px 16px;
            }


            .timeline-container {
              width: 100%;
              padding: 10px 0px;  
              
            }

            .timeline-container h5,
            .timeline-container summary {
            hyphens: none;
            overflow-wrap: break-word;
  word-break: normal;
}      

              /* flex-direction: column;
                padding-left: 20px;
                padding-right: 20px;
                gap: 15px; */
            

            .timeline-container.left, .timeline-container.right, .left, .right {
              left: 0;
              right: 0;
              
            }

             h3 {
              font-size: 1rem;
              letter-spacing: 1px;
            }

             h5 {
              font-size: 0.9rem;
              max-width: 100%;
            }

            /* details {
  padding: 12px;        
} */
        }